// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.livestream-featured {
  @_top: livestream-featured;

  position: relative;

  &::before {
    content: "";
    display: block;
    width: 100%;
    // ensuring fixed aspect ratio
    padding-bottom: (100% * 9 / 16);
  }

  &__actions {
    position: absolute;
    right: 0;
    bottom: 30px;
    width: 0;
    display: flex;
    justify-content: center;
    opacity: 0;
    will-change: opacity;

    .@{_top}:hover & {
      opacity: 1;
    }
  }

  &__content {
    .full-size();
    background-size: cover;
    transition: opacity 1000ms;

    &:link {
      text-decoration: none;
    }
  }

  &__info {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 30px 40px;
    background-image: linear-gradient(transparent, #000);
  }

  &__text {
    margin: 0;
    color: #fff;

    &--detail {
      margin-top: 10px;
      font-size: @font-size--livestream-featured-detail;
    }

    &--name {
      .default-text-shadow();
      font-size: @font-size--livestream-featured-name;
    }
  }
}
